Import('custom_build')

build_ocaml = custom_build('ocamlopt.opt',
                            'nums.cmxa str.cmxa $SOURCE -o $TARGET', 'ml',
                            intermediate_exts=['cmi', 'cmx', 'o'])

build_ocaml('factorial')
build_ocaml('fibonacci')
build_ocaml('heapsort')
build_ocaml('hello')
build_ocaml('spellcheck')
